<template>
  <el-card>
    <el-row type="flex" justify="space-between">
      <el-col>
        <div v-if="showBefore" class="left-box">
          <span class="el-icon-info icon-info" />
          <!-- 有0条考勤审批未处理 -->
          <slot name="before" />
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <!-- <el-button>导入</el-button> -->
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang='scss' scoped>
.left-box{
    display: inline-block;
    padding: 10px;
    background-color: #e6f7ff;
    border: 1px solid #97d7ff;
    border-radius: 5px;
}
.icon-info{
    color: skyblue;
}
</style>
